/**  
 * Project Name:ofs-service-common  
 * File Name:AlipayTradeCategoryEntity.java
 * Package Name:com.moxie.cloud.services.ofs.common.alipay.dto  
 * Date:2016年6月1日下午8:09:30  
 * Copyright (c) 2016, yuandong@51dojo.com All Rights Reserved.  
 *  
*/  
  
package com.example.service.webhook.business.alipay.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.example.service.webhook.repository.base.Saveable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**  
 * ClassName:AlipayTradeCategoryEntity <br/>
 * Function: 支付宝交易统计 <br/>  
 * Reason:   TODO ADD REASON. <br/>  
 * Date:     2016年6月1日 下午8:09:30 <br/>  
 * @author   yuandong  
 * @version    
 * @since    JDK 1.6  
 * @see        
 */
@JsonIgnoreProperties(value = { "primaryVal", "keyColumns", "tableName" }, ignoreUnknown = true)
public class AlipayTradeCategoryEntity implements Saveable{

	private Long id;
	private String userId;
	private String mappingId;
	private String billCycle;
	private String tradeDirect;
	private String categoryType;
	private BigDecimal categoryAmount;
	private String categoryAmountCurrency;
	private int categoryCount;
	private String categoryPercent;
	private Date createTime;
    private Date lastModifyTime;
	
    private static final String[] keyColumns       = { "id" };
    private static final String   tableName        = "t_alipay_tradecategory";

    @Override
    public String getTableName() {
        return tableName;
    }

    @Override
    public String[] getKeyColumns() {
        return keyColumns;
    }
    
    @Override
    public String getPrimaryVal() {
        return String.valueOf(id);
    }
    
	public String getMappingId() {
		return mappingId;
	}
	public void setMappingId(String mappingId) {
		this.mappingId = mappingId;
	}
	public String getBillCycle() {
		return billCycle;
	}
	public void setBillCycle(String billCycle) {
		this.billCycle = billCycle;
	}
	public String getTradeDirect() {
		return tradeDirect;
	}
	public void setTradeDirect(String tradeDirect) {
		this.tradeDirect = tradeDirect;
	}
	public String getCategoryType() {
		return categoryType;
	}
	public void setCategoryType(String categoryType) {
		this.categoryType = categoryType;
	}
	public BigDecimal getCategoryAmount() {
		return categoryAmount;
	}
	public void setCategoryAmount(BigDecimal categoryAmount) {
		this.categoryAmount = categoryAmount;
	}
	public String getCategoryAmountCurrency() {
		return categoryAmountCurrency;
	}
	public void setCategoryAmountCurrency(String categoryAmountCurrency) {
		this.categoryAmountCurrency = categoryAmountCurrency;
	}
	public int getCategoryCount() {
		return categoryCount;
	}
	public void setCategoryCount(int categoryCount) {
		this.categoryCount = categoryCount;
	}
	public String getCategoryPercent() {
		return categoryPercent;
	}
	public void setCategoryPercent(String categoryPercent) {
		this.categoryPercent = categoryPercent;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	
}
  
